﻿#ifndef FRMLUNARCALENDARWIDGET_H
#define FRMLUNARCALENDARWIDGET_H

#include <QWidget>
#include <QTimer>
#include "lunarLib/Solar.h"
#include "lunarLib/Lunar.h"

namespace Ui {
class frmLunarCalendarWidget;
}

class frmLunarCalendarWidget : public QWidget
{
    Q_OBJECT

public:
    explicit frmLunarCalendarWidget(QWidget *parent = 0);
    ~frmLunarCalendarWidget();

private:
    Ui::frmLunarCalendarWidget *ui;
    QTimer ftimer;
    Solar *solar;
private slots:
    void initForm();
    //    void on_cboxCalendarStyle_currentIndexChanged(int index);
    //    void on_cboxSelectType_currentIndexChanged(int index);
    //    void on_cboxWeekNameFormat_currentIndexChanged(int index);
    //    void on_ckShowLunar_stateChanged(int arg1);

    void timer_timeout_slot();
private :
    void updateTime();
    void updateLunar();
    void keyPressEvent(QKeyEvent *event) override;
};

#endif // FRMLUNARCALENDARWIDGET_H
